/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_tj_consbyplatform")
//@NamedQueries({@NamedQuery(name = "TTjConsAccessByPlatform.findAll", query = "SELECT t FROM TTjConsAccessByPlatform t"), @NamedQuery(name = "TTjConsAccessByPlatform.findById", query = "SELECT t FROM TTjConsAccessByPlatform t WHERE t.id = :id"), @NamedQuery(name = "TTjConsAccessByPlatform.findByCyear", query = "SELECT t FROM TTjConsAccessByPlatform t WHERE t.cyear = :cyear"), @NamedQuery(name = "TTjConsAccessByPlatform.findByCmonth", query = "SELECT t FROM TTjConsAccessByPlatform t WHERE t.cmonth = :cmonth"), @NamedQuery(name = "TTjConsAccessByPlatform.findByCday", query = "SELECT t FROM TTjConsAccessByPlatform t WHERE t.cday = :cday"), @NamedQuery(name = "TTjConsAccessByPlatform.findByChour", query = "SELECT t FROM TTjConsAccessByPlatform t WHERE t.chour = :chour"), @NamedQuery(name = "TTjConsAccessByPlatform.findByMpaltform", query = "SELECT t FROM TTjConsAccessByPlatform t WHERE t.mpaltform = :mpaltform"), @NamedQuery(name = "TTjConsAccessByPlatform.findByCiparea", query = "SELECT t FROM TTjConsAccessByPlatform t WHERE t.ciparea = :ciparea"), @NamedQuery(name = "TTjConsAccessByPlatform.findByUdid", query = "SELECT t FROM TTjConsAccessByPlatform t WHERE t.udid = :udid")})
public class TTjConsAccessByPlatform implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "cyear")
    private String cyear;
    @Column(name = "cmonth")
    private String cmonth;
    @Column(name = "cday")
    private String cday;
    @Column(name = "platform")
    private String platform;
    @Column(name = "cid")
    private Integer cid;
    @Column(name = "contenttitle")
    private String contenttitle;
    @Column(name = "contentsource")
    private String contentsource;
    @Column(name = "newstype")
    private String newstype;
    @Column(name = "user_id")
    private String user_id;
    @Column(name = "accessnumber")
    private Integer accessnumber;
    
    public TTjConsAccessByPlatform() {
    }

    public TTjConsAccessByPlatform(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public String getCyear() {
        return cyear;
    }

    public void setCyear(String cyear) {
        this.cyear = cyear;
    }

    public String getCmonth() {
        return cmonth;
    }

    public void setCmonth(String cmonth) {
        this.cmonth = cmonth;
    }

    public String getCday() {
        return cday;
    }

    public void setCday(String cday) {
        this.cday = cday;
    }



    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TTjConsAccessByPlatform)) {
            return false;
        }
        TTjConsAccessByPlatform other = (TTjConsAccessByPlatform) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TTjConsAccessByPlatform[id=" + id + "]";
    }

	/**
	 * mpaltform
	 *
	 * @return  the mpaltform
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	


	/**
	 * platform
	 *
	 * @return  the platform
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getPlatform() {
		return platform;
	}

	/**
	 * @param platform the platform to set
	 */
	public void setPlatform(String platform) {
		this.platform = platform;
	}


	/**
	 * cid
	 *
	 * @return  the cid
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public Integer getCid() {
		return cid;
	}

	/**
	 * @param cid the cid to set
	 */
	public void setCid(Integer cid) {
		this.cid = cid;
	}

	/**
	 * contenttitle
	 *
	 * @return  the contenttitle
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getContenttitle() {
		return contenttitle;
	}

	/**
	 * @param contenttitle the contenttitle to set
	 */
	public void setContenttitle(String contenttitle) {
		this.contenttitle = contenttitle;
	}

	/**
	 * contentsource
	 *
	 * @return  the contentsource
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getContentsource() {
		return contentsource;
	}

	/**
	 * @param contentsource the contentsource to set
	 */
	public void setContentsource(String contentsource) {
		this.contentsource = contentsource;
	}

	/**
	 * newstype
	 *
	 * @return  the newstype
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getNewstype() {
		return newstype;
	}

	/**
	 * @param newstype the newstype to set
	 */
	public void setNewstype(String newstype) {
		this.newstype = newstype;
	}

	/**
	 * user_id
	 *
	 * @return  the user_id
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getUser_id() {
		return user_id;
	}

	/**
	 * @param user_id the user_id to set
	 */
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	/**
	 * accessnumber
	 *
	 * @return  the accessnumber
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public Integer getAccessnumber() {
		return accessnumber;
	}

	/**
	 * @param accessnumber the accessnumber to set
	 */
	public void setAccessnumber(Integer accessnumber) {
		this.accessnumber = accessnumber;
	}

}
